<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<div th:replace="common/top"></div>
<div id="Content">
    <fieldset style="width:730px; margin:0px auto">
        <legend>My Orders</legend>

        <table >
            <tr>
                <th>Order ID</th>
                <th>Date</th>
                <th>Total Price</th>
            </tr>
            <tr th:each="order:${orderList}">
                <td>
                    <a th:href="'/order/viewOrderByOrderId?orderId=' + ${order.orderId}" th:text="${order.orderId}">Order ID</a>
                </td>
                <td th:text="${#dates.format(order.orderDate,'yyyy-MM-dd')}"></td>
                <td th:text="${#numbers.formatDecimal(order.totalPrice,0,'COMMA',2,'POINT')}"></td>
            </tr>

        </table>
    </fieldset>
</div>
<div th:replace="common/bottom"></div>
</body>
</html>